$(document).ready(function(){
	$("#regNewBtn").on("click", function(event){
		var options = new Object();
		options["url"] = "/template/system/function/_regForm";
		options["data"] = "sysCodeType="+$("#enCodeType").val()+"&sysCodeTypeStatus="+$("#enCodeTypeStatus").val();
		options["jqwId"] = "newJqwPop";
		options["title"] = "기능 등록";
		options["resizable"] = false;
		options["width"] = "550";
		options["height"] = "320";
		jqwOpen(options);
	});
});

function jqwOpen(opts){	
	var options = new Object();
	options["url"] = opts["url"];
	options["data"] = opts["data"];
	options["type"] = "POST";
	options["dataType"] = "html";
	options["jqwId"] = opts["jqwId"];
	options["jqwType"] = "popup";//"popup";	//< "popup" | "save" | [null | ""] >
	options["title"] = opts["title"];
	options["resizable"] = opts["resizable"];
	options["width"] = opts["width"];
	options["height"] = opts["height"];
	
	var jqw = new jqWindow();
	jqw.intializer(); //Close all jQuery.Window
	jqw.jqwSet(options);
	jqw.run();
}